//
// Created by admin on 2020/5/17.
//

#ifndef C_DESIGN_ADMIN_H
#define C_DESIGN_ADMIN_H

#include <stdbool.h>

#include "../common/data_process.h"

void adminLogic(struct admin **pAdmin, struct user **pUser, struct order **pOrder, struct flight **pFlight);

bool loginAsAdmin(struct admin **head);

void showAdminMenu();

void showAllUsers(struct user **head);

void showAllFlights(struct flight **head);

void showAllOrders(struct order **head);

void addNewAdmin(struct admin **head);

void addNewFlight(struct flight **head);

void changeInfo(struct admin **head);

void cancelAccount(struct admin **head);

void maintainDataLogic();

void showMaintainDataMenu();

bool maintainData(bool copy);

#endif //C_DESIGN_ADMIN_H
